package com.mingmen.supplier.model;

import java.util.List;

public class CommodityShopModel {


    /**
     * code : 0
     * message : 操作成功
     * time : 2020-09-01 16:05:29
     * data : [{"commodityId":"1294150123546755072","commodityName":"毛巾","picture":"/uploadimg/2020-08-14/50582fd5-9dac-4581-894b-95fa19f5bbd4.png","description":"这是一个毛巾","spec":"1","flag":"1"},{"commodityId":"1294150655715852288","commodityName":"牙刷","picture":"/uploadimg/2020-08-14/70fb72b8-ccd1-4384-b960-af3326c7232d.jpeg","description":"这是商品","spec":"1","flag":"1"},{"commodityId":"1294151127608606720","commodityName":"菠菜","picture":"/uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg","description":"菠菜","spec":"1","flag":"1"},{"commodityId":"1294151413366538240","commodityName":"番茄","picture":"/uploadimg/2020-08-14/0c1a1680-c39a-4868-bd5c-d3d876c6825b.jpeg","description":"番茄","spec":"1","flag":"1"},{"commodityId":"1294151708419047424","commodityName":"土豆","picture":"/uploadimg/2020-08-14/c221c251-d99c-42dd-8814-372577d0d3d7.jpeg","description":"土豆","spec":"1","flag":"1"},{"commodityId":"1294152120790433792","commodityName":"冷鲜鸡肉","picture":"/uploadimg/2020-08-14/704bf3d9-b719-4a54-8ccd-8c0d27c47608.jpeg","description":"鸡肉","spec":"1","flag":"1"},{"commodityId":"1294152576866467840","commodityName":"鸡蛋","picture":"/uploadimg/2020-08-14/681bd224-2fc3-48d6-b9d9-9d280e418005.jpeg","description":"鸡蛋","spec":"1","flag":"1"},{"commodityId":"1294152943666741248","commodityName":"不含碘精盐","picture":"/uploadimg/2020-08-14/d246322d-3ac3-4d99-98c2-c6db3057b53c.jpeg","description":"精盐","spec":"1","flag":"1"},{"commodityId":"1294153145412763648","commodityName":"花椒","picture":"/uploadimg/2020-08-14/6ae2c0a0-c4e5-45a6-9022-bf2a03c86b9b.jpeg","description":"花椒","spec":"1","flag":"1"},{"commodityId":"1294153462124658688","commodityName":"五常大米","picture":"/uploadimg/2020-08-14/8b541e3e-c161-40d8-951c-d4965b0023e8.jpeg","description":"大米","spec":"1","flag":"1"},{"commodityId":"1294153738915168256","commodityName":"九三大豆油","picture":"/uploadimg/2020-08-14/52991a2f-cd3a-430a-b7cf-37351aaf5853.jpeg","description":"豆油","spec":"1","flag":"1"},{"commodityId":"1294154004846624768","commodityName":"茄子","picture":"/uploadimg/2020-08-14/e48c27aa-190f-443d-9a9f-37fc5305e637.jpeg","description":"茄子","spec":"1","flag":"1"},{"commodityId":"1294154271755354112","commodityName":"萝卜","picture":"/uploadimg/2020-08-14/829265ea-6274-47a8-b165-9c88fa00cb8f.jpeg","description":"萝卜","spec":"1","flag":"1"},{"commodityId":"1294154559627214848","commodityName":"辣椒","picture":"/uploadimg/2020-08-14/0d29095d-639e-4d3c-bfe1-36dc8ed9af38.jpeg","description":"辣椒","spec":"1","flag":"1"},{"commodityId":"1294154905300779008","commodityName":"白糖","picture":"/uploadimg/2020-08-14/5f109ebc-6184-458d-84a0-ef60e9057329.jpeg","description":"白糖","spec":"1","flag":"1"},{"commodityId":"1294155264073154560","commodityName":"小龙虾","picture":"/uploadimg/2020-08-14/9bbde7a3-4a08-468f-b5d3-dbc933602d32.jpeg","description":"小龙虾","spec":"1","flag":"1"},{"commodityId":"1294155500845809664","commodityName":"豆角","picture":"/uploadimg/2020-08-14/2584c371-f469-4841-b524-069af3ccf4e8.jpeg","description":"豆角","spec":"1","flag":"1"},{"commodityId":"1294155939624534016","commodityName":"13香","picture":"/uploadimg/2020-08-14/be73845e-2023-4ab7-9830-13710a123528.jpeg","description":"13香","spec":"1","flag":"1"},{"commodityId":"1294156344282595328","commodityName":"红心萝卜","picture":"/uploadimg/2020-08-14/a4694076-1c38-46ec-85e7-97c308245235.jpeg","description":"萝卜","spec":"1","flag":"1"},{"commodityId":"1294156567444733952","commodityName":"水萝卜","picture":"/uploadimg/2020-08-14/b3a341ef-5b55-425a-a4a0-e069130a9e6f.jpeg","description":"萝卜","spec":"1","flag":"1"},{"commodityId":"1294156930998616064","commodityName":"甜椒","picture":"/uploadimg/2020-08-14/20e726d9-750c-4397-9e91-c10e08601617.jpeg","description":"甜椒","spec":"1","flag":"1"},{"commodityId":"1300607251522002944","commodityName":"豆芽","picture":"/uploadimg/2020-09-01/673e671b-5084-4415-87bf-376e16f409ec.jpeg","description":"豆瓣评分不够强大、一","spec":"","flag":"1"},{"commodityId":"1300608428376596480","commodityName":"执行够","picture":"","description":"敏敏","spec":"公公","flag":"1"},{"commodityId":"1300614985256542208","commodityName":"豆瓣","picture":"/uploadimg/2020-09-01/de3af0fb-4da2-43e9-a3ad-6f4cbdb86c88.jpeg","description":"你们要去看什么我的手机我是你最喜我们","spec":"","flag":"1"},{"commodityId":"1300616835540197376","commodityName":"豆角","picture":"/uploadimg/2020-09-01/0cf9d6ac-c14b-4608-a1b8-93c2651eeca6.jpeg","description":"这些是什么情况呀","spec":"500g","flag":"1"}]
     */

    private int code;
    private String message;
    private String time;
    private List<DataBean> data;

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    int totalPage;
    public int getTotalPage() {
        return totalPage;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * commodityId : 1294150123546755072
         * commodityName : 毛巾
         * picture : /uploadimg/2020-08-14/50582fd5-9dac-4581-894b-95fa19f5bbd4.png
         * description : 这是一个毛巾
         * spec : 1
         * flag : 1
         */

        private String commodityId;
        private String commodityName;
        private String picture;
        private String description;
        private String spec;
        private String flag;
        private boolean isChecked = false;

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }
        public String getCommodityId() {
            return commodityId;
        }

        public void setCommodityId(String commodityId) {
            this.commodityId = commodityId;
        }

        public String getCommodityName() {
            return commodityName;
        }

        public void setCommodityName(String commodityName) {
            this.commodityName = commodityName;
        }

        public String getPicture() {
            return picture;
        }

        public void setPicture(String picture) {
            this.picture = picture;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getSpec() {
            return spec;
        }

        public void setSpec(String spec) {
            this.spec = spec;
        }

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }
    }
}
